import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/ting/list',
    method: 'get',
    params: query
  })
}
export function searchFetchList(query) {
  return request({
    url: '/ting/search',
    method: 'get',
    params: query
  })
}

export function update(query) {
  return request({
    url: '/ting/edit',
    method: 'post',
    data: query
  })
}

export function deleteById(query) {
  return request({
    url: '/ting/delete',
    method: 'post',
    params: query
  })
}

export function add(query) {
  return request({
    url: '/ting/add',
    method: 'post',
    params: query
  })
}
